package com.hzqy.persistence.dao.advertisement;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.PmsUserVo;
import com.hzqy.web.vo.advertisement.AdvertisementViewVo;
import com.hzqy.web.vo.advertisement.AdvertisementVo;

@Repository
public class AdvertisementDao  extends PersistenceDao<PmsUserVo, Integer>{
	protected final Logger LOG = LoggerFactory.getLogger(getClass());

	public AdvertisementVo selectAdvertisement(Integer f_am_id) {
		return getSqlSession().selectOne(this.getNamespace() + "selectAdvertisement", f_am_id);
	}

	public List<AdvertisementViewVo> selectAdvertisementViewList(Integer f_amv_advertisementid) {
		return getSqlSession().selectList(this.getNamespace() + "selectAdvertisementViewList",f_amv_advertisementid);
	}
	
	public List<Integer> selectAdvertisementId(Map<String,Object> map){
		return getSqlSession().selectList(this.getNamespace()+"selectAdvertisementId",map);
	}
	
}
